package com.bwie.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @projectName: server-2211a-red
 * @package: com.bwie.vo
 * @className: LoginVo
 * @author: 杨珂
 * @description: TODO
 * @date: 2025/6/6 15:42
 * @version: 1.0
 */
@Data
public class LoginVo implements Serializable {

    @NotBlank(message = "验证码不能为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号格式错误")
    private String mobile;
    private String code;

}
